{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "2f8cb186",
   "metadata": {},
   "source": [
    "# initializers\n",
    "\n",
    "初始化参数初始化\n",
    "\n",
    "tf=2.9.1\n",
    "\n",
    "- tf.keras.initializers.Constant(value=0)\n",
    "- tf.keras.initializers.GlorotNormal(seed=None)\n",
    "- tf.keras.initializers.GlorotUniform(seed=None)\n",
    "- tf.keras.initializers.HeNormal(seed=None)\n",
    "- tf.keras.initializers.HeUniform(seed=None)\n",
    "- tf.keras.initializers.Identity(gain=1.0)\n",
    "- tf.keras.initializers.LecunNormal(seed=None)\n",
    "- tf.keras.initializers.LecunUniform(seed=None)\n",
    "- tf.keras.initializers.Orthogonal(gain=1.0, seed=None)  # 正交\n",
    "- tf.keras.initializers.RandomNormal(mean=0.0, stddev=0.05, seed=None)\n",
    "- tf.keras.initializers.RandomUniform(minval=-0.05, maxval=0.05, seed=None)\n",
    "- tf.keras.initializers.TruncatedNormal(mean=0.0, stddev=0.05, seed=None)\n",
    "- tf.keras.initializers.Zeros()"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 2,
   "id": "70ec2710",
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'2.9.1'"
      ]
     },
     "execution_count": 2,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "import tensorflow as tf\n",
    "\n",
    "tf.__version__"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "abdea786",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "c2ec7b68",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "2fbdca45",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "0da71cfd",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "e49319b6",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.13"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
